<div class="page-container">
			<form method="post" class="layui-form" action="">
		  <div class="layui-form-item">
		    <label class="layui-form-label">规则提示</label>
		    <div class="layui-input-block">
		      	<blockquote class="layui-elem-quote">
		      		一: 请确保电话,身份证号,邮箱 至少存在1个。<br>
		      		二: 请填写表头文字。<br>
		      		三: 请确保上传字段不超过数据库字段长度。<br>
		      	</blockquote>
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">选择来源</label>
		    <div class="layui-input-block">
				<select name="froms" class="select" lay-verify="required">
	        			<option value=""></option>
			          <{volist name="froms" id="v"}>
			              <option value="<{$key}>"><{$v}></option>
			          <{/volist}>
				</select>
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">txt对应表头</label>
		    <div class="layui-input-block">
		    <table class="table table-border table-bordered table-bg table-hover table-sort">
		    <tr>
		    <{volist name='temp2' id='v'}>
		    	<td>
		    	<input type="text" value="<{$v['title']}>" class="layui-input" style="width:100px;" />
		    	<{:c('type.field',$v['type'])}>|<{$v['long']}>
		    	</td>
		    	<{php}>
		    		if($key>=3 && ($key+1)%4==0) echo "</tr>";
		    	<{/php}>
		    <{/volist}>
		    </table>  
		    </div>
		  </div>
		  <div class="layui-form-item layui-form-text">
		    <label class="layui-form-label">上传txt</label>
		    <div class="layui-input-block">
	    		<{:com_c_up(url('c/up', 'dir=data&f=attach&thumb=0'))}>
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <div class="layui-input-block">
		      <button class="layui-btn" lay-submit lay-filter="form">提交</button>
		      <button class="layui-btn layui-btn-primary" onClick="c_close(this);" >关闭</button>
		    </div>
		  </div>
		</form>
</div>
<script>
function jump(rs){
	window.open(rs.data);
	reload();
}
</script>	